package com.async.designpatterns.behavior.respchain;

public class ConcreteHandlerThree implements Handler {
    private Handler nextHandler;

    public ConcreteHandlerThree(Handler handler){
        this.nextHandler = handler;
    }

    @Override
    public void handleRequest() {
        if (nextHandler != null){
            nextHandler.handleRequest();
        } else{
            System.out.println("the third handler handle the request!");
        }
    }
}
